//
//  ZFK_choiseView.m
//  Drops
//
//  Created by SHG on 16/5/24.
//  Copyright © 2016年 Drops.er. All rights reserved.
//

#import "ZFK_choiseView.h"
#import "UIKit+AFNetworking.h"
#import "SelectionPost.h"

@implementation ZFK_choiseView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (id)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
        
    }
    return self;
}

- (void)createView {
    self.imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height / 2 - [UIScreen mainScreen].bounds.size.height / 6)];
    self.imageView.backgroundColor = [UIColor lightGrayColor];
    [self addSubview:self.imageView];
    
    UIView *layerView = [[UIView alloc] init];
    layerView.frame = self.imageView.frame;
    layerView.backgroundColor = [UIColor blackColor];
    layerView.alpha = 0.1;
    [self.imageView addSubview:layerView];
    
    self.textLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, self.frame.size.height / 4)];
    self.textLabel.center = self.imageView.center;
    self.textLabel.textColor = [UIColor whiteColor];
    self.textLabel.textAlignment = 1;
    self.textLabel.numberOfLines = 3;
    [self addSubview:self.textLabel];
    
}

- (void)setSelectionArray:(NSMutableArray *)selectionArray {
    _selectionArray = selectionArray;
    [super reloadInputViews];
}

@end
